@(page: models.cms.PageDto)(block: models.cms.BlockDto)
@reco = @{(block.getData().get("1")).asInstanceOf[List[models.core.user.UserLogDto]]}
@buy = @{(block.getData().get("2")).asInstanceOf[List[models.core.user.UserLogDto]]}
@if(reco != null){
	<div id="recommandations">
		<h4>
			<a class="recommandations_click" title="" href="#">@reco.size() personnes
				le recommandent</a>
		</h4>
		@for(log <- reco){
			<div class="membre">
				@if(log.getUser().getPicture()!= null) {
					<img width="50" height="50" border="0" src="@routes.Assets.at("upload/vignerons/vignerons2-medium.jpg")">
				} else {
					<img width="50" height="50" border="0" src="@log.getUser().getPicture()">
				}
				<a title="" href="#">@log.getUser().getLogin()</a>
			</div>
		}
		<div class="clear"></div>
	</div>
}	
@if(buy != null){
	<div id="achats">
		<h4>
			<a class="recommandations_click" title="" href="#">@buy.size() personnes
				ont acheté ses vins</a>
		</h4>
		@for(log <- buy){
			<div class="membre">
				@if(log.getUser().getPicture()!= null) {
					<img width="50" height="50" border="0" src="@routes.Assets.at("upload/vignerons/vignerons2-medium.jpg")">
				} else {
					<img width="50" height="50" border="0" src="@log.getUser().getPicture()">
				}
				<a title="" href="#">@log.getUser().getLogin()</a>
			</div>
		}
		<div class="clear"></div>
	</div>
}
<div class="clear"></div>
